<?php
class Gallery_Form_MediaEdit extends Gallery_Form_MediaAdd {
	public function init() {
		parent::init();
        $image = $this->getSubForm('imagetab')->getElement('image');
        $image
        	->addDecorator(new KontorX_Form_Decorator_File_ImagePreview(array(
        		'imagePath' => Gallery_Model_Media::UPLOAD_PATH . '/thumb')))
        	->setRequired(false);
        	
        $this->getElement('action')->setLabel('Edytuj');
	}
}